You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/Nordamerika/Kanada, MAX(IF(languagecode = 'en',name,NULL)) as eng, MAX(IF(lan' at line 3Fehler mit Abfrage:
SELECT countryid, region1id, region2id, region3id, region4id, lat, lng, zip, COALESCE(de/Nordamerika/Kanada, eng, base) name FROM ( SELECT countryid, region1id, region2id, region3id, region4id, lat, lng, zip, MAX(IF(languagecode = 'de/Nordamerika/Kanada',name,NULL)) as de/Nordamerika/Kanada, MAX(IF(languagecode = 'en',name,NULL)) as eng, MAX(IF(languagecode = baselang,name,NULL)) as base FROM city c inner JOIN city_languages cl ON c.idregion = cl.regionid WHERE idregion = '507448' GROUP BY idregion )suby